package com.behome.stream.service.impl;

import com.behome.stream.dao.TSysParamMapper;
import com.behome.stream.domain.TSysParam;
import com.behome.stream.service.TSysParamService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TSysParamServiceImpl
 *
 * @author bh_ljy
 * @version 2024/06/05 18:04
 **/
@Service
public class TSysParamServiceImpl implements TSysParamService {
    @Resource
    private TSysParamMapper sysParamMapper;

    @Override
    public List<TSysParam> listData() {
        return sysParamMapper.selectList(null);
    }

    @Override
    public int insert(TSysParam sysParam) {
        return sysParamMapper.insert(sysParam);
    }

    @Override
    public int update(TSysParam sysParam) {
        return sysParamMapper.updateById(sysParam);
    }

    @Override
    public int delete(Long id) {
        return sysParamMapper.deleteById(id);
    }
}
